<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>xmake</title>
  <link rel="icon" href="/assets/img/favicon.ico">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="description" content="Description">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <link href="//cdn.jsdelivr.net/npm/github-markdown-css@4.0.0/github-markdown.min.css" rel="stylesheet">
  <style>
	.markdown-body {
		box-sizing: border-box;
		min-width: 200px;
		max-width: 980px;
		margin: 0 auto;
		padding: 45px;
	}

	@media (max-width: 767px) {
		.markdown-body {
			padding: 15px;
		}
	}
  </style>
</head>
<body>
<article class="markdown-body">
<h4>This is a mirror page, please see the original page: </h4><a href="https://xmake.io/#/manual/specification">https://xmake.io/#/manual/specification</a>
</br>
    <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CE7I52QU&placement=xmakeio" id="_carbonads_js"></script>
<style>
#carbonads {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
  Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#carbonads {
  display: flex;
  max-width: 330px;
  background-color: hsl(0, 0%, 98%);
  box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, .1);
}

#carbonads a {
  color: inherit;
  text-decoration: none;
}

#carbonads a:hover {
  color: inherit;
}

#carbonads span {
  position: relative;
  display: block;
  overflow: hidden;
}

#carbonads .carbon-wrap {
  display: flex;
}

.carbon-img {
  display: block;
  margin: 0;
  line-height: 1;
}

.carbon-img img {
  display: block;
}

.carbon-text {
  font-size: 13px;
  padding: 10px;
  line-height: 1.5;
  text-align: left;
}

.carbon-poweredby {
  display: block;
  padding: 8px 10px;
  background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
  font-size: 9px;
  line-height: 1;
}
</style>
    <h2 id="namingconventions">Naming conventions</h2>
<p>The interface is named according to some of the predefined specifications, which is more convenient to understand and easy to use.</p>
<p>It&#39;s according to the following rules:</p>
<table>
<thead>
<tr>
<th>Interfaces</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>is_</code>/<code>has_</code> + xxx</td>
<td>Condition interfaces</td>
</tr>
<tr>
<td><code>set_</code> + xxx</td>
<td>Set and override the previous settings</td>
</tr>
<tr>
<td><code>add_</code> + xxx</td>
<td>Set and append settings</td>
</tr>
<tr>
<td><code>…s</code> + xxx <em>(plural)</em></td>
<td>Support multi-parameters, .e.g：<code>add_files("*.c", "test.cpp")</code></td>
</tr>
<tr>
<td><code>on_</code> + xxx</td>
<td>Set and override builtin script</td>
</tr>
<tr>
<td><code>before_</code> + xxx</td>
<td>Set and run this script before running builtin-script</td>
</tr>
<tr>
<td><code>after_</code> + xxx</td>
<td>Set and run this script after running builtin-script</td>
</tr>
<tr>
<td><code>scope("name")</code></td>
<td>Define a description scope, .e.g <code>target("xxx")</code>, <code>option("xxx")</code></td>
</tr>
<tr>
<td>scope/settings</td>
<td>Indentation with spaces</td>
</tr>
</tbody>
</table>
</article>
</body>
</html>